const $div_ = document.createElement("div");

function createElement(htmlString) {
  $div_.innerHTML = htmlString;
  return [...$div_.children];
}

class YTree {
  constructor(options) {
    this.options = options;
    this.domElement = createElement("<div class='y-tree'></div>")[0];
    this.domElement.style = options?.style || "";
  }
}

export default YTree;
